﻿using System;
using UnityEngine;

namespace TC
{
    public interface IGraphic
    {
        void OnDraw(Rect rect);
    }

    //渲染器
    public abstract class Graphic<T> : IGraphic
    {
        public T target { get; private set; }
        public Graphic(T t) { this.target = t; }

        public abstract void OnDraw(Rect container);
    }
}